package index

import (
	"github.com/gin-gonic/gin"
	"time"
	. "web_api_gin/controller"
)

var HomeApi = HomeController{}

type HomeController struct {
}

func (c *HomeController) Index(ctx *gin.Context) {
	Success(ctx, gin.H{
		"time": time.Now().Format("2006-01-02 15:04:05"),
	})
}
